﻿using Microsoft.EntityFrameworkCore;
using PlatformNetCore.OAuth2.Models;

namespace PlatformNetCore.OAuth2.Context
{
    public class UserContext : DbContext
    {
        public UserContext(DbContextOptions<UserContext> options)
            : base(options)
        {

        }
        public DbSet<User> Users { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.HasAnnotation("ProductVersion", "3.1.6");
            
            base.OnModelCreating(modelBuilder);
        }
    }
}
